import util from '@/libs/util.js';

export default {

    /**
     * 商户数据审核
     * @param {*} params
     */
    queryDicByType (params) {
        const param = JSON.stringify(params);
        const flag = true;
        return new Promise((resolve, reject) => {
            util.ajax.post('/dictionaryData/queryDicByType', param).then(data => {
                console.log(data);
                if (flag) {
                    resolve({ code: 200, msg: '获取成功！', datas: data });
                } else {
                    reject({ code: 500, msg: '获取失败！', datas: '' });
                }
            }).catch(data => {
                console.log(data);
            });
        });
    }
};
